/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.common.json;

import java.util.List;
import org.json.simple.JSONArray;
/**
 *
 * @author _HungChilvas_
 */
public class GenJsonArray {

    public String genJsonArray(Object object) {
        try {
            return JSONArray.toJSONString((List) object);
        } catch (Exception e) {
            return "Error";
        }
    }
}
